#include<stdio.h>
#include"print.h"
struct student
{
    char *name;
    int age;
    int height;
};

void print_student(struct student stu)
{
    printf("name:%s age:%d height:%d",stu.name,stu.age,stu.height);
}

struct JsetcStu
{
    struct student stu;
    int score;
    int salary;
};

void print_JsetcStudent(struct JsetcStu Jsetc)
{
    print_student(Jsetc.stu);
    printf(" ");
    printf("score:%d salary:%d\n",Jsetc.score,Jsetc.salary);
}

int main()
{
    struct student a;
    a.name="zhangsan";
    a.age=20;
    a.height=180;

    print_student(a);
    print_enter();

    struct student b={"lisi",21,185};
    print_student(b);
    print_enter();  

    struct JsetcStu c={{"wangwu",22,190},800,10000};
    print_JsetcStudent(c);
    print_enter();

    struct JsetcStu d;
    d.stu.name="xiaoer";
    d.stu.age=20;
    d.stu.height=170;
    d.score=700;
    d.salary=7000;
    print_JsetcStudent(d);
    print_enter();
    return 0;
}
